/*
 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Autogenerated file -- DO NOT EDIT!

#ifndef PANDA_RUNTIME_INTRINSICS_ENUM_H_
#define PANDA_RUNTIME_INTRINSICS_ENUM_H_

#include "libpandafile/file_items.h"
#include "libpandafile/modifiers.h"

namespace ark::intrinsics {

enum class Intrinsic : uint16_t {
% Runtime::intrinsics.each do |intrinsic|
    <%= intrinsic.enum_name %>,
% end
};

static_assert(static_cast<size_t>(Intrinsic::<%= Runtime::intrinsics.last.enum_name %>) <= MAX_INTRINSIC_NUMBER, "Too much intrinsics");

bool Initialize(ark::panda_file::SourceLang vmLang);
extern "C" void UnknownIntrinsic(); // NOLINT(readability-named-parameter)

}  // namespace ark::intrinsics

#endif  // PANDA_RUNTIME_INTRINSICS_ENUM_H_
